package br.com.sovi.gwt.client.component.mainmenu;

import br.com.sovi.gwt.client.component.TokenChangeController;

import com.google.gwt.event.logical.shared.ValueChangeEvent;
import com.google.gwt.event.logical.shared.ValueChangeHandler;

public class MainMenuValueChangeHandler implements ValueChangeHandler<String> {

	private TokenChangeController tokenChangeController;

	public MainMenuValueChangeHandler(TokenChangeController tokenChangeController) {
		super();
		this.tokenChangeController = tokenChangeController;
	}

	@Override
	public void onValueChange(ValueChangeEvent<String> event) {
		tokenChangeController.onTokenChange();
	}

}
